package com.carhailing.system.controller;

import com.carhailing.common.domain.coupons.CouponUseRecord;
import com.carhailing.common.result.Result;
import com.carhailing.system.service.CouponsRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: Gd
 * @package: com.carhailing.system.controller
 * @Project: Online_Taxi_Project
 * @Name: CouponsRecordController
 * @Date: 2024-7-26 20:12
 */
@RestController
public class CouponsRecordController {



    @Autowired
    private CouponsRecordService couponsRecordService;

    /**
     * 查询列表  用户优惠券记录表
     */
    @PostMapping("getList")
    public Result getList() {
        List<CouponUseRecord> list = couponsRecordService.list();
        return Result.success(list);
    }

}
